<template>
  <div class="main">
    <div class="left">
      <studentMainleft></studentMainleft>
    </div>
    <div class="right">
      <div class="downloadexcel">
        <!--导出用户信息excel表格-->
        <download-excel
          class="export-excel-wrapper"
          :data="json_data"
          :fields="json_fields"
          name="用户信息列表.xls"
        >
          <el-button type="primary" size="small">导出EXCEL</el-button>
        </download-excel>
      </div>
    </div>
  </div>
</template>

<script>
import studentMainleft from "@/components/studentMainleft";
export default {
  components: {
    studentMainleft
  },
  data() {
    return {
      //导出excel
      json_fields: {
        学生姓名: "StuName",
        学生年龄: "StuAge",
        学生性别: "StuSex",
        学生电话: "StuPhone",
        学生电子邮件: "StuEmail",
        学生身份证: "StuCarid",
        班级: "ClassId",
        入学时间: "StubackTime",
        政治面貌: "PoliticalLandscape",
        常住地: "NativePlace",
        民族: "National"
      },
      json_data: [{}],
      json_meta: [
        [
          {
            " key ": " charset ",
            " value ": " utf- 8 "
          }
        ]
      ]
    };
  },
  created() {},
  mounted() {},
  methods: {}
};
</script>

<style scoped>
.main {
  display: flex;
  height: 100%;
}
.right {
  width: 100%;
  background-color: white;
  height: 80%;
  margin-left: 10px;
}
.right .downloadexcel{
  margin: 20px
}
</style>
